﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Kindle.aspx.vb" Inherits="Kindle"
    EnableSessionState="False" EnableTheming="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Kindle Sermons - Email Delivery</title>
    <link rel="Stylesheet" href="css/layout.css" type="text/css" />
    <link rel="Stylesheet" href="css/default1.css" type="text/css" />
    <link rel="Stylesheet" href="css/public3.css" type="text/css" />
    <meta name="keywords" content="Kindle,mobi,email,inbox,sermons,ebook,transcripts" />
    <meta name="description" content="Wireless delivery of sermon transcripts to a Kindle Device or Email Inbox (html or mobi formats)" />
    <script type="text/javascript">
        function readCookie(name) {
            var nameEQ = name + "=";
            var ca = document.cookie.split(';');
            for (var i = 0; i < ca.length; i++) {
                var c = ca[i];
                while (c.charAt(0) == ' ') c = c.substring(1, c.length);
                if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
            }
            return '';
        }
        function setCookies() {
            var txtEmail = document.getElementById('ctl00_body_txtEmail');
            try {
                txtEmail.value = readCookie('MyEmail');
            }
            catch (e) {
            }
        }
    </script>
    <script type="text/javascript">

        var _gaq = _gaq || [];
        _gaq.push(['_setAccount', 'UA-27682017-1']);
        _gaq.push(['_trackPageview']);

        (function () {
            var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
            ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
        })();

    </script>
    <style>
     a { text-decoration:none; }
     a:hover { text-decoration:underline; }
    </style>
    <link rel="image_src" href="http://mikeconnellministries.com/images/deaf_small.png" />
  </head>
<body>
    <div id="fb-root">
    </div>
    <script>        (function (d, s, id) {
            var js, fjs = d.getElementsByTagName(s)[0];
            if (d.getElementById(id)) return;
            js = d.createElement(s); js.id = id;
            js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
            fjs.parentNode.insertBefore(js, fjs);
        } (document, 'script', 'facebook-jssdk'));</script>
    <form id="form1" runat="server">
    <table class="box" align="center">
        <tr>
            <td style="border-bottom:1px solid #aaa; padding:5px;">
                <strong>Download Sermons as an eBook:
                 </strong>
               <br />
                <asp:HyperLink ID=lnkHtml runat=server Text="Html" NavigateUrl="?format=html" Target=_blank />
                &nbsp;
                <asp:HyperLink ID=lnkMobi runat=server Text="Mobi" NavigateUrl="?format=mobi" Target=_blank />
                &nbsp;
                <asp:HyperLink ID=lnkEpub runat=server Text="Epub" NavigateUrl="?format=epub" Target=_blank />
               <br />
            </td>
        </tr>
        <tr>
            <td>
                <strong style="padding:0px 5px">Send it to my:</strong>
                <asp:RadioButtonList ID="rbl" runat="server" AutoPostBack="true" RepeatDirection="Horizontal">
                    <asp:ListItem Text="Email Inbox (html)" Selected="True" />
                    <asp:ListItem Text="Kindle Device (mobi)" />
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr>
            <td style="padding-bottom:5px">
                <asp:TextBox ID="txt" runat="server" MaxLength="255" Width=180 />
                <asp:Button ID="btnSend" runat="server" Text="Send Email" />
                <asp:RequiredFieldValidator ID="rfv" runat="server" ControlToValidate="txt" ErrorMessage="Email Address is Required"
                    Text="*" />
                <asp:ValidationSummary ID="vs" runat="server" ShowMessageBox="false" ShowSummary="true"
                    Style="margin-left: 25px" />
                <asp:Panel ID="pnl" runat="server" Style="margin-top: 10px">
                    <pre style="font-family: Arial; font-size: smaller; background: #ddd; text-align: left;
                        white-space: normal">
<u>To approve the sender's e-mail address: </u>
<br />
1. Visit Manage Your Kindle page (sign in to Amazon)
<br />
2. Go to "Personal Document Settings" under "Your Kindle Account".
<br />
3. Under "Approved Personal Document E-mail List" click "Add a new approved e-mail address".
<br />
4. Enter <b>downloads@mikeconnellministries.com</b> then select "Add Address."
</pre>
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td>
                <asp:RadioButtonList ID="rbl2" runat="server" AutoPostBack="true">
                    <asp:ListItem Selected="True">All Sermons (or new ones since last time)</asp:ListItem>
                    <asp:ListItem>Let me choose...</asp:ListItem>
                </asp:RadioButtonList>
                <asp:CustomValidator ID="cv" runat="server" Text="*" ErrorMessage="No new transcripts since last email"
                    Display="None" />
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:HyperLink ID="lnkBack" runat="server" Text="Back to Sunday Sermons..." />
            </td>
        </tr>
    </table>
    <table class="box" align="center" style="margin-top: 20px" id="tblSelect" runat="server">
        <tr>
            <td align="center">
                <asp:CheckBox ID="chkAll" runat="server" Text="Select All/None" Checked="true" AutoPostBack="true" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:CheckBoxList ID="cbl" runat="server" RepeatColumns="2" DataTextField="ProductName"
                    DataValueField="ProductId" Font-Size="Smaller" />
            </td>
        </tr>
    </table>
    <table align="center" style="margin-top: 20px" id="tblSent" runat="server">
        <tr>
            <td colspan="3">
                <asp:Label ID="lblSent" runat="server" Font-Bold="true" ForeColor="LightGreen" />
            </td>
        </tr>
        <tr>
            <td style="background-color: #eee; -moz-border-radius: 5px; -webkit-border-radius: 5px;
                -khtml-border-radius: 5px; border-radius: 5px;">
                <asp:HyperLink ID="lnkDeafSermons" runat="server" ToolTip="Show the Sermons with Audio Transcripts (provided for the Deaf/Hearing-impaired)" Target=_blank>
                    <asp:Image ID="imgSupport" runat="server" ImageUrl="~/images/deaf.png" Height="30"
                        Width="30" AlternateText="Deaf/Hearing-impaired" /></asp:HyperLink>
            </td>
            <td style="padding-left: 10px; padding-right: 10px;" nowrap="nowrap">
                <asp:HyperLink Visible="true" ID="lnkSupport" runat="server" ImageUrl="~/images/donate.gif"
                    ToolTip="Support the transcription service with a Paypal Donation" Target=_blank />
            </td>
            <td>
                <div class="fb-like" data-href="<%=Request.Url.AbsoluteUri %>" data-send="false"
                    data-layout="button_count" data-width="80" data-show-faces="false" data-action="recommend">
                </div>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
